# 全局变量--start
from spider.chapter02.getData import getData
from getText import getText

baseurl = 'https://movie.douban.com/top250?start='

def main():
    # 1.获取网页数据
    htmllist = getData(baseurl, 1, 25)
    # 2.解析网页数据
    datalist=getText(htmllist)
    print(datalist)


if __name__ == '__main__':
    main()
